<%@ page language="java" import="com.alibaba.fastjson.JSONObject" pageEncoding="UTF-8" %>
<%@ page import="weaver.conn.RecordSet" %>
<%@ page import="weaver.general.Util" %>
<%--试卷台账进行中和未开始的不允许删除--%>
<%
    JSONObject jsonData = new JSONObject();
    RecordSet rs = new RecordSet();
    String id = Util.null2String(request.getParameter("id"));
    rs.executeQuery("select field5 from cus_fielddata where scope='HrmCustomFieldByInfoType' and scopeid='-1' and id=?", id);
    String bmgw = "";
    if (rs.next()) {
        String field5 = Util.null2String(rs.getString("field5"));
        bmgw = getBmgwByid(field5);
    }

    jsonData.put("bmgw", bmgw);
    out.print(jsonData.toJSONString());
%>
<%!
    public static String getBmgwByid(String id) {
        RecordSet rs = new RecordSet();
        rs.executeQuery("select bmgw from uf_bmgwwh where id=?", id);
        rs.next();
        return Util.null2String(rs.getString("bmgw"));
    }
%>





